﻿<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>大厅-智慧公社</title>
    <link href="__PUBLIC__/css/bootstrap.min.css" rel="stylesheet">
    <link href="__PUBLIC__/css/font-awesome.min.css" rel="stylesheet">
    <link href="__PUBLIC__/css/animate.css" rel="stylesheet"  />
    <link rel="stylesheet" href="__PUBLIC__/css/index.css">
    <link href="__PUBLIC__/css/font-awesome.css"  rel="stylesheet" type="text/css">
    <script src="__PUBLIC__/js/jquery.js"></script>
    <script src="__PUBLIC__/js/jquery.snippet.min.js"></script>
    <script src="__PUBLIC__/js/bootstrap.min.js"></script>
    <script src="__PUBLIC__/js/jquery.pin.min.js"></script>
    <script src="__PUBLIC__/js/headroom.js"></script>
    <script src="__PUBLIC__/js/index.js"></script>
    <script src="__PUBLIC__/js/bootstrap-select.js"></script>    

    <script src="__PUBLIC__/js/jquery.snippet.min.js"></script>
        <script>
    	var url="{:U('Index/addArticle')}";
		var urlDown="{:U('Index/daoAcrticle')}";
		var fileUrl="{:U('Index/attention')}"
		var heartUrl="{:U('Index/heart')}";
	    var urlOrder="{:U('Index/discussOrder')}";
    </script>
    <!--<style>
     *{border: 1px solid rgb(250,0,255);}
    </style>-->
</head>
<body style="background-color:#f8f8f8">

    <!-- 头部导航开始 -->
 <include file="Index/title" />
    <!-- 主体信息开始 -->
    <div id='contents' class="container">
        <div class="hall-toptext">每晚8-10点来智慧公社阅读、思考或参与讨论，你会发现人生正在发生改变</div>
         <foreach name="tagName" item="tagVo"> 
                <span class="btn">{$tagVo}</span>
         </foreach>
        <div>
        <!--<div class="hall-tag"><a href="javascript:void()" data-toggle="modal" data-target="#myModal">添加你喜欢的标签</a>，淘到你需要的智慧</div>-->

        <!-- Modal -->
        <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h4 class="modal-title" id="myModalLabel">热门Tag：</h4>
                    </div>
                   <form action="" method="post" name="myform">
                    <div class="modal-body">
              
                     <foreach name="tag" item="tagTitle">
                        <div class="col-xs-4">
                            <select multiple="multiple" title="{$tagTitle['tag_content']}" name="tag[]">
                            <foreach name="tagTitle['cate']" item="tagCont">
                                <option value="{$tagCont['tag_id']}">{$tagCont['tag_content']}</option>
                             </foreach>
                            </select>
                        </div>
                    </foreach>
                    </div>
                    <div style="float:right; margin-right:50px;">
                    <button type="button" class="btn " data-dismiss="modal">取消</button>
                        <input type="submit" class="btn btn-success " value="确认"/>
                      </div>
                    </form>
                    <div class="modal-footer" style="border:0;">
                        
                    </div>
                </div><!-- /.modal-content -->
            </div><!-- /.modal-dialog -->
        </div><!-- /.modal -->
    <div class="row" style="margin-top:30px;">
        <div class="col-xs-6">
            <volist name="list" id="vo" mod="2">
           <eq name="mod"  value="1" >
                <div class="card panel panel-default">
            
                    <div class="panel-body">
                
                        <div class="card-head">
                            <div class="card-head-left"><a href="{:U('Index/hispage',array('hispage'=>$vo['user_id']))}"><img src="{$vo['user_img']}" width="45" class="img-circle" /></a></div>
                            <div class="card-head-center"><a href="{:U('Index/hispage',array('hispage'=>$vo['user_id']))}">{$vo['user_name']}</a><small>@{$vo['article_time']|date='Y-m-d H:i',###}</small></div>
                            <if condition="($vo['article_type'] eq 2) or ($vo['article_type'] eq 3)">
                            <div class="card-head-right">
                            
                         <if condition="$vo['is_order'] eq 1">
                             <span class="fa fa-rss marking"> {$vo['article_order']}</span>
                            <else/>
                            <span class="order cursor " value="{$vo['article_id']}"><span class="fa fa-rss "></span> {$vo['article_order']}</span>
                            </if>
                            
                            </div>
                         <else/>
                                <if condition="$vo['article_father_id'] eq 0"> 
                                  <if condition="($vo['article_zan_id'] eq 1) or ($vo['article_dao_id'] eq 1)">
                              <div class="card-head-right"><i value="{$vo['article_id']}" class="fa fa-thumbs-up good fa-lg cursor">{$vo['article_zan']}</i>&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-thumbs-down fa-lg cursor" value="{$vo['article_id']}">{$vo['article_dao']}</i></div>
                                  <else/>
                                  <div class="card-head-right"><i value="{$vo['article_id']}" class="fa fa-thumbs-o-up good fa-lg cursor">{$vo['article_zan']}</i>&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-thumbs-o-down fa-lg cursor" value="{$vo['article_id']}">{$vo['article_dao']}</i></div>
                                  </if>
                                <else/>
                                 <if condition="($vo['article_zan_id'] eq 1) or ($vo['article_dao_id'] eq 1)">
                              <div class="card-head-right"><i value="{$vo['article_father_id']}" class="fa fa-thumbs-up good fa-lg cursor">{$vo['article_zan']}</i>&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-thumbs-down fa-lg cursor" value="{$vo['article_id']}">{$vo['article_dao']}</i></div>
                                  <else/>
                                  <div class="card-head-right"><i value="{$vo['article_father_id']}" class="fa fa-thumbs-o-up good fa-lg cursor">{$vo['article_zan']}</i>&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-thumbs-o-down fa-lg cursor" value="{$vo['article_id']}">{$vo['article_dao']}</i></div>
                                  </if>
                                </if>
                         </if>
                            <div class="clearfix"></div>
                        </div>
                        <div class="card-body">
                       <switch name="vo['article_type']">
                           <case value="1"> <div class="title discuss articleTitle"><span class="titleCont"><a  href="{:U('Index/article',array('aid'=>$vo['article_id']))}">{$vo['article_title']}</a></span></span></div>
                          <div class="articleCont">
                          <a  href="{:U('Index/article',array('aid'=>$vo['article_id']))}">{$vo['article_content']}</a>
                          </div>
                           </case>
                           <case value="2"> <div class="title discuss articleTitle">发起 <span>讨论</span><span class="titleCont"><a href="{:U('Index/discuss',array('aId'=>$vo['article_id']))}">{$vo['article_title']}</a></span></div>
                          <div class="articleCont">
                          <a href="{:U('Index/discuss',array('aId'=>$vo['article_id']))}">{$vo['article_content']}</a>
                          </div>
                           </case>
                            <case value="3"> <div class="title discuss articleTitle">参与 <span>讨论</span><span class="titleCont"><a  href="{:U('Index/discuss',array('aId'=>$vo['father_id']))}">{$vo['article_title']}</a></span></div>
                           <div class="articleCont">
                          <a  href="{:U('Index/discuss',array('aId'=>$vo['father_id']))}">{$vo['article_content']}</a>
                          </div>
                            </case>
                            <case value="4"> <div class="title discuss articleTitle">赞同 <span class="rss">文章 </span><span class="titleCont"><a  href="{:U('Index/article',array('aid'=>$vo['father_id']))}">{$vo['article_title']}</a></span></div>
                           <div class="articleCont">
                          <a  href="{:U('Index/article',array('aid'=>$vo['father_id']))}">{$vo['article_content']}</a>
                          </div>
                            </case>
                            <case value="5"> <div class="title discuss articleTitle">批阅 <span class="rss">文章 </span><span class="titleCont"><a  href="{:U('Index/article',array('aid'=>$vo['father_id']))}">{$vo['article_title']}</a></span></div>
                           <div class="articleCont">
                           <a  href="{:U('Index/article',array('aid'=>$vo['father_id']))}">{$vo['article_content']}</a>
                          </div>
                            </case>
                             <case value="6"> <div class="title discuss articleTitle">订阅 <span>讨论</span><span class="titleCont"><a  href="{:U('Index/discuss',array('aId'=>$vo['father_id']))}">{$vo['article_title']}</a></span></div>
                           <div class="articleCont">
                           <a href="{:U('Index/discuss',array('aId'=>$vo['father_id']))}">{$vo['article_content']}</a>
                          </div>
                             </case>
                            
                            </switch>

                        </div>
                        <div class=""></div>
                    </div>

                </div>
                </eq>
                </volist>
        </div>
        <div class="col-xs-6">
          

             <volist name="list" id="vo" mod="2">
           <eq name="mod"  value="0" >
                <div class="card panel panel-default">
            
                    <div class="panel-body">
                
                        <div class="card-head">
                            <div class="card-head-left"><a href="{:U('Index/hispage',array('hispage'=>$vo['user_id']))}"><img src="{$vo['user_img']}" width="45" class="img-circle" /></a></div>
                            <div class="card-head-center"><a href="{:U('Index/hispage',array('hispage'=>$vo['user_id']))}">{$vo['user_name']}</a><small>@{$vo['article_time']|date='Y-m-d H:i',###}</small></div>
                            <if condition="($vo['article_type'] eq 2) or ($vo['article_type'] eq 3)">
                            <div class="card-head-right">
                            
                           <if condition="$vo['is_order'] eq 1">
                             <span class="fa fa-rss marking"> {$vo['article_order']}</span>
                            <else/>
                            <span class="order cursor " value="{$vo['article_id']}"><span class="fa fa-rss "></span> {$vo['article_order']}</span>
                            </if>
                            
                            </div>
                         <else/>
                                <if condition="$vo['article_father_id'] eq 0"> 
                                  <if condition="($vo['article_zan_id'] eq 1) or ($vo['article_dao_id'] eq 1)">
                              <div class="card-head-right"><i value="{$vo['article_id']}" class="fa fa-thumbs-up good fa-lg cursor">{$vo['article_zan']}</i>&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-thumbs-down fa-lg cursor" value="{$vo['article_id']}">{$vo['article_dao']}</i></div>
                                  <else/>
                                  <div class="card-head-right"><i value="{$vo['article_id']}" class="fa fa-thumbs-o-up good fa-lg cursor">{$vo['article_zan']}</i>&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-thumbs-o-down fa-lg cursor" value="{$vo['article_id']}">{$vo['article_dao']}</i></div>
                                  </if>
                                <else/>
                                 <if condition="($vo['article_zan_id'] eq 1) or ($vo['article_dao_id'] eq 1)">
                              <div class="card-head-right"><i value="{$vo['article_father_id']}" class="fa fa-thumbs-up good fa-lg cursor">{$vo['article_zan']}</i>&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-thumbs-down fa-lg cursor" value="{$vo['article_id']}">{$vo['article_dao']}</i></div>
                                  <else/>
                                  <div class="card-head-right"><i value="{$vo['article_father_id']}" class="fa fa-thumbs-o-up good fa-lg cursor">{$vo['article_zan']}</i>&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-thumbs-o-down fa-lg cursor" value="{$vo['article_id']}">{$vo['article_dao']}</i></div>
                                  </if>
                                </if>
                         </if>
                            <div class="clearfix"></div>
                        </div>
                        <div class="card-body">
                        <switch name="vo['article_type']">
                           <case value="1"> <div class="title discuss articleTitle"><span class="titleCont"><a  href="{:U('Index/article',array('aid'=>$vo['article_id']))}">{$vo['article_title']}</a></span></span></div>
                          <div class="articleCont">
                          <a  href="{:U('Index/article',array('aid'=>$vo['article_id']))}">{$vo['article_content']}</a>
                          </div>
                           </case>
                           <case value="2"> <div class="title discuss articleTitle">发起 <span>讨论</span><span class="titleCont"><a href="{:U('Index/discuss',array('aId'=>$vo['article_id']))}">{$vo['article_title']}</a></span></div>
                          <div class="articleCont">
                          <a href="{:U('Index/discuss',array('aId'=>$vo['article_id']))}">{$vo['article_content']}</a>
                          </div>
                           </case>
                            <case value="3"> <div class="title discuss articleTitle">参与 <span>讨论</span><span class="titleCont"><a  href="{:U('Index/discuss',array('aId'=>$vo['father_id']))}">{$vo['article_title']}</a></span></div>
                           <div class="articleCont">
                          <a  href="{:U('Index/discuss',array('aId'=>$vo['father_id']))}">{$vo['article_content']}</a>
                          </div>
                            </case>
                            <case value="4"> <div class="title discuss articleTitle">赞同 <span class="rss">文章 </span><span class="titleCont"><a  href="{:U('Index/article',array('aid'=>$vo['father_id']))}">{$vo['article_title']}</a></span></div>
                           <div class="articleCont">
                          <a  href="{:U('Index/article',array('aid'=>$vo['father_id']))}">{$vo['article_content']}</a>
                          </div>
                            </case>
                            <case value="5"> <div class="title discuss articleTitle">批阅 <span class="rss">文章 </span><span class="titleCont"><a  href="{:U('Index/article',array('aid'=>$vo['father_id']))}">{$vo['article_title']}</a></span></div>
                           <div class="articleCont">
                           <a  href="{:U('Index/article',array('aid'=>$vo['father_id']))}">{$vo['article_content']}</a>
                          </div>
                            </case>
                             <case value="6"> <div class="title discuss articleTitle">订阅 <span>讨论</span><span class="titleCont"><a  href="{:U('Index/discuss',array('aId'=>$vo['father_id']))}">{$vo['article_title']}</a></span></div>
                           <div class="articleCont">
                           <a href="{:U('Index/discuss',array('aId'=>$vo['father_id']))}">{$vo['article_content']}</a>
                          </div>
                             </case>
                            
                            </switch>

                        </div>
                        <div class=""></div>
                    </div>

                </div>
                </eq>
                </volist>
    </div>
   
    </div> <!-- 主体信息结束 -->
<!--<div  style="width:300px; height:30px; margin:auto; line-height:30px; text-align:center; border:1px solid #CCC;" class="cursor fildLoad" value="1" >点击加载更多</div>-->
    <footer>
        
    </footer>
        <script type="text/javascript">
        jQuery(function ($) {
            $(document).ready(function () {
                var header = new Headroom(document.querySelector(".navbar"), {
                    tolerance: 0,
                    offset: 0,
                    classes: {
                        initial: "animated",
                        pinned: "slideDown",
                        unpinned: "slideUp"
                    }
                });
                header.init();

                $('.card').mouseover(function () {
                    $(this).find('.close').toggleClass("hidden");
                });
                $('.card').mouseout(function () {
                    $(this).find('.close').toggleClass("hidden");
                });
                $('[data-dismiss="fuck"]').click(function () {
                    $(this).closest('.card').fadeOut(1000);
                });
               // var messcont = $("#myTabContent").find(".mess-close").size();
               // $(".mess-nord").text(messcont);
                $('.mess-close').mouseenter(function () {
                    $(this).find('.dropdown-footer').toggleClass("hidden").animate({ opacity: '1', height: '35px' });
                });
                $('.mess-close').mouseleave(function () {
                    $(this).find('.dropdown-footer').animate({ opacity: '0', height: '0px' }, function () { $(this).toggleClass("hidden") });
                });
                $('[data-toggle="mess-popover"]').click(function () {
                    $('#mess').fadeToggle();
                });
                $('[data-dismiss="mess-close"]').click(function () {
                    $(this).closest('.mess-close').animate({ opacity: '0', height: '0px' }, function () { $(this).addClass("hidden") });
                    $(".mess-nord").text(function (i, x) {
                        x--;
                        if (x == 0) {
                            return "";
                        } else {
                            return x;
                        }
                    });
                });

            });
			
	  $("select").selectpicker({ style: 'btn-block btn-default', menuStyle: 'dropdown-inverse' });
	  $('.hall').addClass('active');
	  $('home').removeClass('active');
        });
    </script>
</body>
</html>
